package tgc.edu.demo.jkxt.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import tgc.edu.demo.jkxt.custom.BaseRepository;
import tgc.edu.demo.jkxt.entity.Knowledge;

@Repository
public interface KnowledgeRepository extends BaseRepository<Knowledge ,Integer> {
	
	@Query(value="select *  from knowledge  where course_id=?",nativeQuery = true)
	public List<Knowledge> findKnowledgeByCourseId(Integer kcid);

}
